package com.db.patterns.factory.demo03;

public class Client {
    public static void main(String[] args) {
        OperationFactory operationFactory = new OperationFactory();
        Operation operation = operationFactory.getOperation("add");
        operation.numA = 10d;
        operation.numB = 20d;
        System.out.println("结果为：" + operation.getResult());
    }
}
